package com.wang.bootbuilder.entity.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role implements Serializable {

    private static final long serialVersionUId = 1L;

    @TableId
    Long id;

    String roleName;

    Long authId;

    Date authTime;

    @TableField(fill = FieldFill.INSERT)
    Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    String createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    String updateBy;

    @TableField(fill = FieldFill.INSERT)
    LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    LocalDateTime updateTime;

    String menuIds;

    @Version
    @TableField(fill = FieldFill.INSERT)
    Integer version;

}
